const singleLineData = [
  { x: '2013', y: 40 },
  { x: '2014', y: 50 },
  { x: '2015', y: 55 },
  { x: '2016', y: 61 },
  { x: '2017', y: 45 },
  { x: '2018', y: 30 },
];
const groupLineData = [
  { name: '年度医疗卫生支出增长率', x: '2016', y: 45 },
  { name: '年度医疗卫生支出增长率', x: '2017', y: 70 },
  { name: '年度医疗卫生支出增长率', x: '2018', y: 65 },
  { name: '年度医疗总收入增长率', x: '2016', y: 40 },
  { name: '年度医疗总收入增长率', x: '2017', y: 55 },
  { name: '年度医疗总收入增长率', x: '2018', y: 60 },
];
const doubleLineCustomData = [
  { subCost: 3316.23, x: '2013', increase: -26.81 },
  { subCost: 2847.25, x: '2014', increase: -14.14 },
  { subCost: 3088.85, x: '2015', increase: 8.49 },
  { subCost: 3497.07, x: '2016', increase: 13.22 },
  { subCost: 3544.18, x: '2017', increase: 1.35 },
  { subCost: 3216.06, x: '2018', increase: -9.26 },
];
const complexLineData = [
  { x: '2013', actualData: 1392.62, errorRate: -3.29, forecastData: 1346.74 },
  { x: '2014', actualData: 1295.45, errorRate: 10.1, forecastData: 1426.31 },
  { x: '2015', actualData: 1269.76, errorRate: 9.81, forecastData: 1394.3 },
  { x: '2016', actualData: 1290.9, errorRate: 4.21, forecastData: 1345.19 },
  { x: '2017', actualData: 1351.31, errorRate: -1.42, forecastData: 1332.14 },
  { x: '2018', actualData: 1247.89, errorRate: 7.61, forecastData: 1342.89 },
];
const lineData = {
  singleLineData,
  groupLineData,
  doubleLineCustomData,
  complexLineData,
};

const singleBarData = [
  { x: '2014', y: 45 },
  { x: '2015', y: 50 },
  { x: '2016', y: 55 },
  { x: '2017', y: 60 },
  { x: '2018', y: 80 },
];
const groupBarData = [
  { x: '2016', y: 40, group: '年度医疗总收入增长率' },
  { x: '2017', y: 50, group: '年度医疗总收入增长率' },
  { x: '2018', y: 60, group: '年度医疗总收入增长率' },
  { x: '2016', y: 45, group: '年度医疗卫生支出增长率' },
  { x: '2017', y: 55, group: '年度医疗卫生支出增长率' },
  { x: '2018', y: 65, group: '年度医疗卫生支出增长率' },
];
const groupBarData2 = [
  { x: '基层机构门诊总就诊量', y: 50, group: '2017' },
  { x: '基层机构门诊总就诊量', y: 60, group: '2018' },
  { x: '总医院门诊总就诊量', y: 55, group: '2017' },
  { x: '总医院门诊总就诊量', y: 65, group: '2018' },
];
const stackBarData = [
  { x: '2016', y: 40, group: '基层机构门诊总就诊量' },
  { x: '2017', y: 50, group: '基层机构门诊总就诊量' },
  { x: '2018', y: 60, group: '基层机构门诊总就诊量' },
  { x: '2016', y: 45, group: '总医院门诊总就诊量' },
  { x: '2017', y: 55, group: '总医院门诊总就诊量' },
  { x: '2018', y: 65, group: '总医院门诊总就诊量' },
];
const expandBarData = [
  { orgName: '尤溪县医院', y1: 30, y2: 40, y3: 20 },
  { orgName: '尤溪中医院', y1: 28, y2: 25, y3: 18 },
  { orgName: '尤溪县妇幼保健院', y1: 15, y2: 10, y3: 10 },
];
const doubleBarData = [
  { x: '固定资产设备', yLeft: 21109, group: '总计' },
  { x: '耗材', yLeft: 21121, group: '总计' },
  { x: '药品', yLeft: 21115, group: '总计' },
  { x: '固定资产设备', yRight: 40, group: '数量' },
  { x: '耗材', yRight: 60, group: '数量' },
  { x: '药品', yRight: 80, group: '数量' },
];
const doubleBarCustomData = [
  { x: '固定资产设备', text: 21109, type: '总计' },
  { x: '耗材', text: 21121, type: '总计' },
  { x: '药品', text: 21115, type: '总计' },
  { x: '固定资产设备', value: 40, type: '数量' },
  { x: '耗材', value: 60, type: '数量' },
  { x: '药品', value: 80, type: '数量' },
];
const doubleBarExpandData = [
  { x: '固定资产设备', subCost: 3316.23, increase: 26.81 },
  { x: '耗材', subCost: 2847.25, increase: 14.14 },
  { x: '药品', subCost: 3088.85, increase: 8.49 },
];
const plusMinusBarData = [
  { x: '2016-09', y: 106.67, group: '基金盈余' },
  { x: '2016-10', y: 196.23, group: '基金盈余' },
  { x: '2016-11', y: 20.25, group: '基金盈余' },
  { x: '2016-12', y: -100, group: '基金盈亏' },
  { x: '2017-01', y: 100, group: '基金盈余' },
  { x: '2017-02', y: 361.27, group: '基金盈余' },
  { x: '2017-03', y: 41.14, group: '基金盈余' },
  { x: '2017-04', y: 121.47, group: '基金盈余' },
  { x: '2017-05', y: 85.07, group: '基金盈余' },
  { x: '2017-06', y: 134.74, group: '基金盈余' },
  { x: '2017-07', y: 208.28, group: '基金盈余' },
  { x: '2017-08', y: 99.85, group: '基金盈余' },
];
const facetBarData = [
  { name: '杭州市', x: '已完成项目数', y: 20 },
  { name: '杭州市', x: '项目总数', y: 30 },
  { name: '宁波市', x: '已完成项目数', y: 15 },
  { name: '宁波市', x: '项目总数', y: 25 },
  { name: '温州市', x: '已完成项目数', y: 10 },
  { name: '温州市', x: '项目总数', y: 20 },
  { name: '嘉兴市', x: '已完成项目数', y: 17 },
  { name: '嘉兴市', x: '项目总数', y: 27 },
  { name: '湖州市', x: '已完成项目数', y: 20 },
  { name: '湖州市', x: '项目总数', y: 30 },
  { name: '绍兴市', x: '已完成项目数', y: 20 },
  { name: '绍兴市', x: '项目总数', y: 30 },
  { name: '金华市', x: '已完成项目数', y: 20 },
  { name: '金华市', x: '项目总数', y: 30 },
  { name: '衢州市', x: '已完成项目数', y: 20 },
  { name: '衢州市', x: '项目总数', y: 30 },
  { name: '舟山市', x: '已完成项目数', y: 20 },
  { name: '舟山市', x: '项目总数', y: 30 },
  { name: '台州市', x: '已完成项目数', y: 20 },
  { name: '台州市', x: '项目总数', y: 30 },
  { name: '丽水市', x: '已完成项目数', y: 0 },
  { name: '丽水市', x: '项目总数', y: 0 },
];
const barData = {
  singleBarData,
  groupBarData,
  groupBarData2,
  stackBarData,
  expandBarData,
  doubleBarData,
  doubleBarCustomData,
  doubleBarExpandData,
  plusMinusBarData,
  facetBarData,
};

const simplePieData = [
  { x: '药品收入', y: 1844.26, xPercent: '药占比', yPercent: 29.67, an: -10.97 },
  { x: '检查化验收入', y: 1479.94, xPercent: '检查化验费占比', yPercent: 23.81, an: -11.78 },
  { x: '卫生材料收入', y: 106.59, xPercent: '卫生材料费占比', yPercent: 1.71, an: 2.42 },
  { x: '医务收入', y: 2103.69, xPercent: '医务收入占比 ', yPercent: 33.85, an: 2.9 },
  { x: '其他收入', y: 680.87, xPercent: '其他收入占比', yPercent: 10.95, an: -2.98 },
];
const doublePieData = [{ x: '2018年', y: 123 }, { x: '2017年', y: 118 }];
const solidPieData = [{ x: '男', y: 150 }, { x: '女', y: 50 }, { x: '不详', y: 50 }];
const pieData = {
  simplePieData,
  doublePieData,
  solidPieData,
  percent: 38.88,
};

const simpleAreaData = [
  { x: '2013', y: 30 },
  { x: '2014', y: 60 },
  { x: '2015', y: 30 },
  { x: '2016', y: 60 },
  { x: '2017', y: 90 },
  { x: '2018', y: 120 },
];
const expandAreaData = [
  { orgName: '尤溪县医院', y1: 30, y2: 20 },
  { orgName: '尤溪中医院', y1: 28, y2: 35 },
  { orgName: '尤溪县妇幼保健院', y1: 15, y2: 10 },
];
const areaData = {
  simpleAreaData,
  expandAreaData,
};
const defaultMixData = [
  { x: '2016', yLeft: 75.49, group: '次均门诊费用' },
  { x: '2017', yLeft: 76.83, group: '次均门诊费用' },
  { x: '2018', yLeft: 81.1, group: '次均门诊费用' },
  { x: '2016', yRight: -10.92, group: '费用增幅' },
  { x: '2017', yRight: -13.05, group: '费用增幅' },
  { x: '2018', yRight: 8.63, group: '费用增幅' },
];
const mixData = [
  { subCost: 3316.23, x: '2013', increase: -26.81 },
  { subCost: 2847.25, x: '2014', increase: -14.14 },
  { subCost: 3088.85, x: '2015', increase: 8.49 },
  { subCost: 3497.07, x: '2016', increase: 13.22 },
  { subCost: 3544.18, x: '2017', increase: 1.35 },
  { subCost: 3216.06, x: '2018', increase: -9.26 },
];
const mixData2 = [
  { x: '2015', actualData: 1269.76, errorRate: 9.81, forecastData: 1394.3 },
  { x: '2016', actualData: 1290.9, errorRate: 4.21, forecastData: 1345.19 },
  { x: '2017', actualData: 1351.31, errorRate: -1.42, forecastData: 1332.14 },
  { x: '2018', actualData: 1247.89, errorRate: 7.61, forecastData: 1342.89 },
];
const mixChartData = {
  defaultMixData,
  mixData,
  mixData2,
};
export default {
  // 'POST /local/lineDataQuery': (req, res) => {
  //   res.status(401).send({
  //     timestamp: 1513932555104,
  //     status: 401,
  //     error: 'Unauthorized',
  //     message: 'Unauthorized',
  //     path: '/base/category/list',
  //   });
  // },
  'POST /local/lineDataQuery': {
    success: true,
    message: '请求成功',
    entity: lineData,
  },
  'POST /local/barDataQuery': {
    success: true,
    message: '请求成功',
    entity: barData,
  },
  'POST /local/pieDataQuery': {
    success: true,
    message: '请求成功',
    entity: pieData,
  },
  'POST /local/areaDataQuery': {
    success: true,
    message: '请求成功',
    entity: areaData,
  },
  'POST /local/mixChartDataQuery': {
    success: true,
    message: '请求成功',
    entity: mixChartData,
  },
};
